<%--
  Created by IntelliJ IDEA.
  User: 林云志
  Date: 2018/4/27
  Time: 22:09
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
        <%
            String number1 = request.getParameter("number");
            int number2 = Integer.parseInt(number1);
            int sum = 0;
            for (int i = 1;i<=number2;i++){

                 sum=sum+i;
            }
            out.write(String.valueOf(sum));
        %>
</body>
</html>
